package com.doubao.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户每日token使用记录表
 */
@Data
@TableName("user_daily_token")
public class UserDailyToken implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 日期
     */
    private LocalDate date;

    /**
     * 输入tokens
     */
    private Integer promptTokens;

    /**
     * 输出tokens
     */
    private Integer completionTokens;

    /**
     * 限制tokens
     */
    private Integer limitTokens;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;
}